﻿package edzis.translatebuddy.model.data {
	import edzis.translatebuddy.model.vo.SessionVO;
	import edzis.translatebuddy.model.vo.WordVO;
	import fl.data.DataProvider;
	
	public class WordDataProvider extends DataProvider {
		
		public function WordDataProvider() {
			super();
		}
		
		public function getIndexByID(id:int):int {
			var wordVO:WordVO;
			for (var i:int = 0; i < length; i++) {
				wordVO = getItemAt(i) as WordVO;
				if (wordVO.id == id) return i;
			}
			return -1;
		}
		
	}
	
}